package com.dongdongsongcan.app.fragment;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.dongdongsongcan.app.R;
import com.dongdongsongcan.app.activity.ShopDetailActivity;
import com.dongdongsongcan.app.control.bean.ShopData;
import com.su.dolphin.view.fragment.BaseFragment;

public class ShopDetailIntroFragment extends BaseFragment {

    private TextView mShopdetail_descreption;

    @Override
    protected int onSetContentView() {
        return R.layout.fragment_shopdetail_intro;
    }

    @Override
    public void initView() {
        mShopdetail_descreption = (TextView) getView().findViewById(R.id.shopdetail_descreption);
    }

    @Override
    public void setListener() {

    }

    @Override
    public void initData() {
        ShopData.Shop shop = ((ShopDetailActivity) getActivity()).getShop();
        //mShopdetail_descreption.setText("简介:" + shop.getShop_intro() + "\n");
        mShopdetail_descreption.append("地址:" + shop.getShop_address() + "\n");
        mShopdetail_descreption.append("电话:" + shop.getShop_linktel());
    }

    @Override
    public void onClick(View arg0) {

    }

    @Override
    public void update(Bundle bundle) {

    }

}
